// 采购入库状态管理
import Vue from 'vue';

export const state = Vue.observable({
  stockInNo: '', // 入库单
  customerNo: '', // 供应商
  tax: 0.13, // 税率
  dict_ck: [], // 仓库
  dict_pp: [], // 品牌
  dict_pjlb: [] // 配件类别
});

export const mutations = {
  setStockInNo: setStockInNo => (state.setStockInNo = setStockInNo),
  setCustomerNo: customerNo => (state.customerNo = customerNo),
  setTax: tax => (state.tax = tax),
  setDict_ck: dict => (state.dict_ck = dict),
  setDict_pp: dict => (state.dict_pp = dict),
  setDict_pjlb: dict => (state.dict_pjlb = dict)
};
